home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1998 August / PC Plus SuperCD 50a Issue 142 (CD142a) (August 1998).iso / trial / demon / TURNPIKE.1 / CLASSES.ZIP / sun / NET / WWW / PROTOCOL / HTTP / Handler.class (.txt) next >
Encoding:
Java Class File  |  1997-04-14  |  606 b   |  25 lines

  1. package sun.net.www.protocol.http;
  2.  
  3. import java.net.URL;
  4. import java.net.URLConnection;
  5. import java.net.URLStreamHandler;
  6.  
  7. public class Handler extends URLStreamHandler {
  8.    protected String proxy;
  9.    protected int proxyPort;
  10.  
  11.    public Handler() {
  12.       this.proxy = null;
  13.       this.proxyPort = -1;
  14.    }
  15.  
  16.    public Handler(String var1, int var2) {
  17.       this.proxy = var1;
  18.       this.proxyPort = var2;
  19.    }
  20.  
  21.    protected URLConnection openConnection(URL var1) {
  22.       return new HttpURLConnection(var1, this);
  23.    }
  24. }
  25.